package com.xiaoyang.forum.domain.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * @Author: XiaoYang
 * @CreateTime: 2025-08-10
 * @Description: 版块表
 */
@Data
@TableName("t_board")
public class Board extends BaseEntity{

    /**
     * 编号，主键自增
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private Long id;

    /**
     * 版块名
     */
    private String name;

    /**
     * 帖子数量
     */
    private Integer articleCount;

    /**
     * 排序优先级，升序
     */
    private Integer sort;

    /**
     * 状态 0正常，1禁用
     */
    private Integer state;
}
